<template>
  <div>
    <el-card class="box-card">
      <div>
        所属合同
        <el-divider direction="vertical"></el-divider>
        <el-tag effect="dark">
          {{ demand.bgContract }}
        </el-tag>
      </div>
      <el-divider></el-divider>
      <div>
        所属项目
        <el-divider direction="vertical"></el-divider>
        <el-tag effect="dark">
          {{ demand.bgProject }}
        </el-tag>
      </div>
      <el-divider></el-divider>
      <div>
        期数
        <el-divider direction="vertical"></el-divider>
        <el-tag effect="dark" type="success">
          {{ demand.stageNum }}
        </el-tag>
      </div>
      <el-divider></el-divider>
      <div>
        需求来源
        <el-divider direction="vertical"></el-divider>
        <el-tag effect="dark">
          {{ demand.demandSource }}
        </el-tag>
      </div>
      <el-divider></el-divider>
      <div>
        优先级
        <el-divider direction="vertical"></el-divider>
        <el-tag effect="dark" type="success">
          {{ demand.privilege }}
        </el-tag>
      </div>
      <el-divider></el-divider>
      <div>
        需求名称
        <el-divider direction="vertical"></el-divider>
        <el-tag effect="dark">
          {{ demand.demandName }}
        </el-tag>
      </div>
      <el-divider></el-divider>
      <div>
        计划工时
        <el-divider direction="vertical"></el-divider>
        <el-tag effect="dark" type="success">
          {{ demand.planTime }}
        </el-tag>
      </div>
      <el-divider></el-divider>
      <div>
        <el-button type="success" @click="review(1)">
          通过
        </el-button>
        <el-button type="danger" @click="review(2)">
          不通过
        </el-button>
      </div>
    </el-card>
  </div>
</template>

<script>

export default {
  name: "ChangeShow",
  props: {
    demand: Object
  },
  methods: {
    review(state) {
      let demand = this.demand
      demand.ifCheck = state
      this.$emit("review", demand)
    }
  }
}
</script>
